package com.movitech.mobile.cz.base.supplier.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.movitech.mobile.cz.base.common.util.CommonConstants;
import com.movitech.mobile.cz.base.supplier.entity.SSupplierObtainInformation;
import com.movitech.mobile.cz.base.supplier.mapper.SSupplierObtainInformationMapper;
import com.movitech.mobile.cz.base.supplier.service.SSupplierObtainInformationService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 供方基本情况--获取信息类型 服务实现类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-02-28
 */
@Service("sSupplierObtainInformationService")
@Transactional
public class SSupplierObtainInformationServiceImpl extends ServiceImpl<SSupplierObtainInformationMapper, SSupplierObtainInformation> implements SSupplierObtainInformationService {

    @Override
    public SSupplierObtainInformation selectBySupplierId(String supplierId) {
        SSupplierObtainInformation sSupplierObtainInformation = new SSupplierObtainInformation();
        sSupplierObtainInformation.setSuppliersId(supplierId);
        sSupplierObtainInformation.setDelFlag(CommonConstants.DEL_FLAG_NORMAL);
        EntityWrapper entityWrapper = new EntityWrapper();
        entityWrapper.setEntity(sSupplierObtainInformation);
        return selectOne(entityWrapper);
    }
}
